package top.lyjwn.todo.weinxin.bjnews.service;

import top.lyjwn.todo.weinxin.data.bjnews.BjnewsUserAccessToken;
import top.lyjwn.todo.weinxin.data.bjnews.WXBUser;

import jakarta.servlet.http.HttpServletResponse;

/**
 * 微信公众号授权回调
 *
 * @author luoyujie
 */
public interface WXBAuthRedirectService {

    /**
     * 扫码登录回调
     *
     * @param wxbUser
     */
    void scanCodeLogin(WXBUser wxbUser);

    /**
     * 授权回调
     *
     * @param response
     * @param wxbUser
     */
    void redirect(HttpServletResponse response, WXBUser wxbUser);

    /**
     * 普通回调(只获取openid)
     *
     * @param response
     * @param accessToken
     */
    void redirect(HttpServletResponse response, BjnewsUserAccessToken accessToken);

}
